import {defineConfig} from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
    title: "My Awesome Project",
    description: "A VitePress Site",
    outDir: '../public',
    base: '/vite-press-blog/',
    assetsDir: 'static',
    //默认的主题配置项
    themeConfig: {
        // https://vitepress.dev/reference/default-theme-config
        //导航栏
        nav: [
            {text: 'Home', link: '/'},
            {text: 'Examples', link: '/markdown-examples'},
            {//下拉连接示例
                text: 'Dropdown Menu',
                items: [
                    {text: 'Item A', link: '/item-1'},
                    {text: 'Item B', link: '/item-2'},
                    {text: 'Item C', link: '/item-3'}
                ]
            }

        ],
        sidebar: [
            {
                text: 'Examples',
                collapsed: true,//折叠
                items: [
                    {text: 'Markdown Examples', link: '/markdown-examples'},
                    {text: 'Runtime API Examples', link: '/api-examples'},
                ]
            },
            {
                collapsed: true,
                text: '测试',
                items: [{
                    text: '测试1', link: '/my-test'
                }]
            }
        ],
        search: {
            provider: 'local'
        },
        socialLinks: [
            {icon: 'github', link: 'https://github.com/vuejs/vitepress'}
        ]
    }
})
